package com.dunshan.order.redb;

/**
 * @description: 选择
 * @author: 李文
 * @create: 2021-08-21 11:50
 **/
public class RedisSelectSupport {
    private static final ThreadLocal<Integer> SELECT_CONTEXT = new ThreadLocal<>();

    public static void select(int db){
        SELECT_CONTEXT.set(db);
    }

    public static Integer getSelect(){
        return SELECT_CONTEXT.get();
    }
}

